class AdjustMonitorEntriesWithNewProjectPlan < ActiveRecord::Migration
  def up
    change_table :monitor_entries do |t|
      t.remove :is_charging, :battery_pct, :is_connected, :latency
      t.rename :imei, :user_uuid
      t.rename :network_type, :status
      t.rename :charger_type, :type_
      t.integer :log_class, :time_zone
    end
  end

  def down
    change_table :monitor_entries do |t|
      t.remove :log_class, :time_zone
      t.rename :user_uuid, :imei
      t.rename :status, :network_type
      t.rename :type_, :charger_type
      t.float :battery_pct, :latency
      t.boolean :is_charging, :is_connected
    end
  end
end
